<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
        <title>选择要复制到的分站</title>
        <link rel="stylesheet" href="{APP_THEME_DIR}/layui/css/layui.css?v=v2.5.4">
    </head>
    <body>

        <!-- 盗取代码必死妈 -->
        <form class="layui-form js-ajax-form" action="">
            <div class="layui-form-item">
                <label class="layui-form-label" style="width: 100%;box-sizing: border-box;text-align: center;font-size: 12px;line-height: 20px;color: red">选择要复制到的分站（默认不选就是全选，直接点确认复制到全部分站）复制内容前请查看分站是否有对应的栏目
                    <!-- <?php echo $area_tree.'1';?> -->
                </label>
                <div class="layui-input-block">
                       {foreach $area_tree(key,info)}
                       <?php if($info->acode !='cn'){?>
                       <input type="checkbox" name="acodes[]" value="[info->acode]" title="[info->name]">
                       <?php }?>
                    {/foreach}
                </div>
            </div>
        </form>
         <script type="text/javascript" src="{APP_THEME_DIR}/js/jquery-1.12.4.min.js"></script>
        <script type="text/javascript" src="{APP_THEME_DIR}/layui/layui.all.js?v=v2.5.4"></script>
        <script>
            function getFormInfo() {
                $form = $('.js-ajax-form');
                var form_data = $form.serialize();
                var url = $form.attr('action');
                return [url, form_data];
            }
        </script> 
    </body>
</html>